home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
danix201.zip
/
LS.1
< prev
next >
Wrap
Text File
|
1994-01-17
|
3KB
|
74 lines
LS(1) Danix Utilities LS(1)
NAME
ls - list a directory
SYNOPSIS
ls [-aCdFlprRstx1] files ...
DESCRIPTION
Each file in the file list which is not a directory is listed. For
each directory given in the file list, it prints the contents of that
directory. If the file list is empty, the contents of the current
directory is displayed. By default, files are listed sorted in
alphabetical order. Hidden files are not listed by default.
ls supports color output to the console by defining the environment
variable COLORLS. If the COLORLS environment variable is not defined,
ls checks for the variable COLORDIR. The value should be a colon
separated list of file specifiers and associated colors. The file
specifier is a list of extentions (bat, exe) or file attributes (dirs,
system, hidden, archive, rdonly) separated by spaces. Colors are one
of (black, blue, green, cyan, red, magenta, brown, LIGHTGRAY, DARKGRAY,
LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW,
WHITE). Separate colors may be defined for foreground and background
using the syntax 'foreground on background'. The colors in capital
letters may only be used for the foreground. The foreground may be
made to blink by adding the word 'blink' before it, and can be made
bright by adding 'bright' before it. All words are case insensitive.
An example would be:
set COLORLS=com exe:blink bright yellow;dirs:red;c:white on blue
-a Include hidden files in the list.
-C Force multi-column output. Entries will be sorted down each
column. This is the default if output is to a terminal.
-d Don't list contents of directory arguments.
-F Append the path separator to directories and add a '*' after
executable files.
-l List files in long format. For each file, the mode, size
in bytes and modification time are listed. Modes listed are:
d - file is a directory
s - file is a system file
h - file is a hidden file
r - file is read only
a - archive bit is set
-p Append the path separator to files which are directories.
-r Reverse the order of sort to get reverse alphabetic or oldest
first (if -t is specified).
-R Recursively list subdirectories encountered.
-s Give the size in blocks of each file.
-t Sort by modification time instead of alphabetically. Files
are listed newest to oldest.
-x Multi-column output with entries sorted across the rows.
-1 List files in a single column. This is the default if output
is not to a terminal.
EXAMPLES
ls \utils - list the files in the \utils directory
ls -R \utils - list all files in the \utils directory and
recursively list all subdirectories encountered
ls \u*.* - list all files in the root directory which begin
with u.